//
//  OGLsensor.h
//  CommandCenter08
//
//  Created by Matt Roman on 7/20/08.
//  Copyright 2008 University of Oklahoma. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <OpenGL/gl.h>
#import <OpenGL/glext.h>
#import <OpenGL/glu.h>
#import "Rover.h"
#import "definitions.h"

void getProfileHeights(laserScanner *lazer, float heights[]);
void getPanelHeights(laserScanner *lazer, float heights[]);

@interface OGLsensor : NSOpenGLView 
{
	int						type;
	Rover*					bot;
	IBOutlet NSTextField	*name;
	laserScanner			*scanner;
	float					displayAngle;
	float					scale;
	float					*heights;
	float					*heightPosition;
}
+ (NSOpenGLPixelFormat*) basicPixelFormat;
- (id)initWithFrame:(NSRect)frameRect andRover:(Rover *)r sensorType:(SenseType)t;
- (void) drawRect:(NSRect) bounds;
- (void) drawArrow;
- (void) drawFan;
- (void) drawBars;
- (void) drawLineProfile;
- (void) refresh;
@end
